# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#   
#   cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
#   Major.create(:name => 'Daley', :city => cities.first)

root = Category.create(:name => "日语学习")
child = Category.create(:name => "初级日语")
child.move_to_child_of root
child = Category.create(:name => "中级日语")
child.move_to_child_of root
child = Category.create(:name => "高级日语")
child.move_to_child_of root

root = Category.create(:name => "日语考试 ")
child = Category.create(:name => "日语能力测试")
child.move_to_child_of root

root = Category.create(:name => "生活日语 ")
child = Category.create(:name => "日常用语")
child.move_to_child_of root


Pos.create :name=> "--"
Pos.create :name=> "动词"
Pos.create :name=> "形容词"
Pos.create :name=> "形容动词"
Pos.create :name=> "名词"
Pos.create :name=> "代词"
Pos.create :name=> "数词"
Pos.create :name=> "连体词"
Pos.create :name=> "副词"
Pos.create :name=> "接续词"
Pos.create :name=> "感动词"
Pos.create :name=> "助动词"
Pos.create :name=> "助词"